package com.tianjin.design.chainofresponsibility;


public class ChainManager {

    public static LeaderHandler buildChain(){

        LeaderHandler one = new OneLeaderhandler();
        LeaderHandler two = new TwoLeaderHandler();
        LeaderHandler three = new ThreeLeaderHandler();

        two.setSuperLeader(three);
        one.setSuperLeader(two);

        return one;
    }

}
